<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="CitaViewDlg" widgetVar="CitaViewDialog" modal="true" resizable="false" appendTo="@(body)" header="#{bundle.ViewCitaTitle}">
            <h:form id="CitaViewForm">
                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{citaController.selected != null}">                        
                        <h:outputText value="#{bundle.ViewCitaLabel_fechacita}"/>
                        <h:outputText value="#{citaController.selected.fechacita}" title="#{bundle.ViewCitaTitle_fechacita}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>
                        <h:outputText value="#{bundle.ViewCitaLabel_detallecita}"/>
                        <p:inputTextarea id="detallecita" value="#{citaController.selected.detallecita}" 
                                         title="#{bundle.ViewCitaTitle_detallecita}" disabled="true"
                                         rows="5" cols="30" autoResize="false"/>
                        <h:outputText value="#{bundle.CreatePacientesLabel_cedula}"/>
                        <h:outputText value="#{citaController.selected.idpaciente.cedula}" title="#{bundle.ViewCitaTitle_idpaciente}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="CitaViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
